package com.yvan.codeslave.action;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.yvan.codeslave.snippet.Idea;
import com.yvan.codeslave.snippet.SnippetService;

public class ReloadAction extends AnAction {

    public ReloadAction() {
        super("重新读取配置");
    }

    @Override
    public void actionPerformed(AnActionEvent e) {
        SnippetService.reload();
        Idea.showInfo("重新读取设置成功!");
    }
}
